<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
    String contextPath = request.getContextPath();
%>
<html>
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
    <link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/jquery.loadmask.css" />
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="<%=contextPath%>/resources/easyUI/easyui-lang-zh_CN.js"></script>
    <script type='text/javascript' src='<%=contextPath%>/resources/js/views/indicator_type.js'></script>
</head>
<body>
<div id="content" style="height: 100%">
    <div class="time">
        <form action="<%=contextPath%>/indicator/type/list.do" id="ff" method="post">
        <input type="hidden" name="limit" value="20">
        <input type="hidden" id="pageNum" name="pageNum" value="1">
        <ul>
            <li>&nbsp;&nbsp;报表选择&nbsp;
                <select class="easyui-combobox" name="formsid" id="formid" style="width: 200px;" >
                    <c:forEach var="forms" items="${allForms}">
                        <option value="${forms.id}">${forms.name}</option>
                    </c:forEach>
                </select>
                <label> 指标名：<input class="easyui-textbox" type="text" name="name" /></label>
                <label> <a href="#" onclick="CRUD.queryList();"class="easyui-linkbutton" iconCls="icon-search">查询</a> </label>
            </li>
        </ul>
        </form>
    </div>
    <br>
    <div id="tablepanel" class="easyui-panel" style="width:100%;height:auto;padding:10px;" title="指标分类列表">
			<table id="tt" rownumbers="true" data-options="loadMsg:0"></table>
	</div>
</div>

<div id="dialogAdd">
    <form id="fmAdd" name="formHead" style="text-align:right;padding-top: 10px;height:auto;width: 100%" method="post" action="<%=contextPath%>/indicator/type/save.do">
        <input type="hidden" name="id" id="id"/>
        <input type="hidden" name="formsid" id="formsid"/>
        <input type="hidden" name="expire" id="expire_id"/>
        <table style="text-align:left;padding-left: 50px;height:auto;width:95%" id="ruleTable">
            <tr>
                <td style="width:90px;text-align:right">表名:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="name" id="name"/></td>
            </tr>
            <tr>
                <td style="width:90px;text-align:right">表号:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="code" id="code"/></td>
            </tr>
            <tr>
                <td style="width:90px;text-align:right">制定机关:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="making" id="making"/></td>
            </tr>
            <tr>
                <td style="width:90px;text-align:right">批准文号:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="number" id="number"/></td>
            </tr>
            <tr>
                <td style="width:90px;text-align:right">期别:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="rate" id="rate"/></td>
            </tr>
            <tr>
                <td style="width:90px;text-align:right">说明:</td>
                <td colspan="6"><input class="easyui-textbox" style="margin-left:2px;width:149px;" type="text" name="remark" id="remark"/></td>
            </tr>
            <tr>
                <td style="width:120px;text-align:right">有效期至:</td>
                <td><input type="text" id="expire" name="expire_date"  class="easyui-datebox" style="width:150px;"/></td>
            </tr>
             <tr>
                <td colspan="2" style="text-align:center;">
					<a class="easyui-linkbutton" id="a_AddOK" onclick="">&nbsp;确&nbsp;定&nbsp;</a>
	        		<a class="easyui-linkbutton" id="a_AddCancle">&nbsp;取&nbsp;消&nbsp;</a>
				</td>
            </tr>
        </table>
    </form>
</div>

</body>
</html>